#pragma once
#include "stdafx.h"
#include "Tools.h"
#define MAX_TORTOISEIMAGE_COUNT 5
#define TORTOISE_MOVE_SPEED 6;

class CTortoise
{
public:
	CTortoise();
	~CTortoise();
private:
	CvPoint m_pos;
	IplImage *m_img[MAX_TORTOISEIMAGE_COUNT];
	int m_StateId;
	int m_Times, m_Dir;
	bool m_isLive;
	bool is_Shelled;
public:
	void SetImage();
	void AutoMove(IplImage* Bg);
	void DrawToBack(IplImage* Bg, int MapMoveDis);
	bool isNeedClear();
	void SetLiveType(bool LiveType);
	CTortoise(int posx);
	IplImage * GetImage();
	CvPoint GetPos();
	bool isShelled();
};

